import {legacy_createStore,combineReducers, applyMiddleware,compose} from 'redux';
import reduxThunk from 'redux-thunk';
import handlernum from './addNum/reducer.ts';
import handlerarr from './arrpush/reducer.ts';
import handleruser from './users/reducer.ts';

const reducers = combineReducers({
    handlernum,
    handlerarr,
    handleruser
})

// const store = legacy_createStore(reducers,window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__());
let composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION__COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION__COMPOSE__({}) : compose
const store = legacy_createStore(reducers,composeEnhancers(applyMiddleware(reduxThunk)));

export default store